package com.idig8.until;

public class TimeTool {
    public static void getTime(CallBack callBack) {
        long startTime = System.currentTimeMillis();
        callBack.execute();
        long endTime = System.currentTimeMillis();
        System.out.println("执行时间为: " + (endTime - startTime));
    }
}
